﻿using Sharp.Platform.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace Sharp.WebBooter
{
    /// <summary>
    /// 用户配置配置
    /// </summary>
    public class UserConfig : IUserConfig
    {
        public UserConfig()
        {
            Subscribers = new List<SubscriberItem>();
        }

        /// <summary>
        /// 订阅项
        /// </summary>
        public List<SubscriberItem> Subscribers { get; set; }

        /// <summary>
        /// 订阅项
        /// </summary>
        public class SubscriberItem
        {
            public Guid Id { get; set; }
            public int Order { get; set; }
        }

        public string ConfigFileName
        {
            get { return "UserConfig.config"; }
        }
    }
}